package com.jiawa.train.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * <p>
 * 每日车站
 * </p>
 *
 * @author hrz
 * @since 2025-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("daily_train_station")
@ApiModel(value="DailyTrainStation对象", description="每日车站")
public class DailyTrainStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "日期")
    @TableField("`date`")
    private Date date;

    @ApiModelProperty(value = "车次编号")
    private String trainCode;

    @ApiModelProperty(value = "站序|第一站是0")
    @TableField("`index`")
    private Integer index;

    @ApiModelProperty(value = "站名")
    private String name;

    @ApiModelProperty(value = "站名拼音")
    private String namePinyin;

    @ApiModelProperty(value = "进站时间")
    private LocalTime inTime;

    @ApiModelProperty(value = "出站时间")
    private LocalTime outTime;

    @ApiModelProperty(value = "停站时长")
    private LocalTime stopTime;

    @ApiModelProperty(value = "里程（公里）|从上一站到本站的距离")
    private BigDecimal km;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
